# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=glacier-music
pkgver=0.2.3_git20211018
pkgrel=1
_commit="36ae1f4915b7d02aabd589348a44994967e80513"
pkgdesc="The Glacier music player"
url="https://github.com/nemomobile-ux/glacier-music"
# armhf blocked by qtquickcontrols-nemo
arch="all !armhf"
license="LGPL-2.0-or-later"
depends="
	mapplauncherd
	nemo-qml-plugin-settings
	qtquickcontrols-nemo
	"
makedepends="
	cmake
	libglacierapp-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	qt5-qttools-dev
	samurai
	taglib-dev
	"
source="https://github.com/nemomobile-ux/glacier-music/archive/$_commit/glacier-settings-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
4516e6e7c0222fff104d1168c2072228f706e6e6d6f61f2e13321d4a5610c086dab12b8fe32f252bc1b118439600e04794b2f1fc0a15a85c2e3b36ce4cdf5299  glacier-settings-36ae1f4915b7d02aabd589348a44994967e80513.tar.gz
"
